import Cookies from '@/utils/auth'

const state = () => ({
	userInfo:JSON.parse(Cookies.get('userInfo') || '{}')
})
const getters = {
	userInfo(state) {
		return state.userInfo;
	}
}
const mutations = {
	set_userInfo: (state, data) => {
		state.userInfo = data
	},
}
const actions = {
	
	
}

export default {
	namespaced: true,
	state,
	getters,
	mutations,
	actions
}
